package expressions;

import parsing.Parser;

/**
 * A syntax element which separates e.g. arguments to a function.
 * 
 */
public abstract class Comma<T> extends SyntaxElement<T>
{
    public void parse(Parser<T> parser)
    {
        while (!(parser.topOperator() instanceof SyntaxElement<?>))
        {
            parser.buildTopOperator();
        }

        parser.addTopOperator(this);
    }
}
